package org.example.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Data;
import lombok.Getter;

import java.io.Serializable;

@Getter
public enum ButtonType implements Describable {
    EDIT(1, "编辑"),
    AUDIT(2, "审核"),
    ANTI_AUDIT(3, "反审核")
    ;
    
    @EnumValue
    private final int value;
    @JsonValue
    private final String desc;
    
    ButtonType(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }
    
    @Override
    public int getValue() {
        return this.value;
    }
    
    @Override
    public String getDesc() {
        return this.desc;
    }
}
